package com.dsg.entity.account;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 天鑽公司總帳
 * </p>
 *
 * @author system
 * @since 2020-11-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="DsgAccount对象", description="天鑽公司總帳")
public class DsgAccount implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主鍵")
    @TableId("OID")
    private String oid;

    @ApiModelProperty(value = "油公司")
    @TableField("OIL_COM")
    private String oilCom;

    @ApiModelProperty(value = "交易类型")
    @TableField("TRAN_TYPE")
    private Integer tranType;

    @ApiModelProperty(value = "交易日期")
    @TableField("TRAN_DATE")
    private Date tranDate;

    @ApiModelProperty(value = "交易編碼")
    @TableField("TRAN_CODE")
    private String tranCode;

    @ApiModelProperty(value = "收/支款人名称")
    @TableField("HOLD_NAME")
    private String holdName;

    @ApiModelProperty(value = "收入/支出")
    @TableField("IN_OUT")
    private String inOut;

    @ApiModelProperty(value = "交易金额")
    @TableField("TRA_AMOUNT")
    private BigDecimal traAmount;

    @ApiModelProperty(value = "餘額")
    @TableField("BALANCE_VALUE")
    private BigDecimal balanceValue;

    @ApiModelProperty(value = "对账状态")
    @TableField("REC_STATUS")
    private Integer recStatus;

    @ApiModelProperty(value = "是否AR对账")
    @TableField("IS_AR")
    private Integer isAr;

    @ApiModelProperty(value = "是否兑现")
    @TableField("IS_CASH")
    private Integer isCash;

    @ApiModelProperty(value = "兑现日期 ")
    @TableField("CASH_TIME")
    private Date cashTime;

    @ApiModelProperty(value = "预计兑现日期 ")
    @TableField("PRE_CASH_TIME")
    private Date preCashTime;

    @ApiModelProperty(value = "是否计入统计 ")
    @TableField("IS_IN_STA")
    private Integer isInSta;

    @ApiModelProperty(value = "支票编号")
    @TableField("CHECK_NO")
    private String checkNo;

    @ApiModelProperty(value = "备注")
    @TableField("REMARKS")
    private String remarks;

    @ApiModelProperty(value = "企業編號")
    @TableField("ENT_CODE")
    private String entCode;

    @ApiModelProperty(value = "创建人")
    @TableField("CREATER")
    private String creater;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATE_TIME")
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    @TableField("UPDATER")
    private String updater;

    @ApiModelProperty(value = "更新时间")
    @TableField("UPDATE_TIME")
    private Date updateTime;

    @ApiModelProperty(value = "銀行名稱")
    @TableField("ACCOUNT_NAME")
    private String accountName;

    @ApiModelProperty(value = "收款银行编号")
    @TableField("ACCOUNT_NO")
    private String accountNo;

    @ApiModelProperty(value = "Reference Bank")
    @TableField("REFERENCE_BANK")
    private String referenceBank;

    @ApiModelProperty(value = "記錄日期")
    @TableField("REG_TIME")
    private Date regTime;

    @ApiModelProperty(value = "記錄狀態")
    @TableField("REG_STATUS")
    private Integer regStatus;

    @ApiModelProperty(value = "今日支出")
    @TableField(exist = false)
    private BigDecimal incomeSum;

    @ApiModelProperty(value = "今日存入")
    @TableField(exist = false)
    private BigDecimal expendSum;

    @ApiModelProperty(value = "系統統計餘額")
    @TableField(exist = false)
    private BigDecimal sysStaSum;

    @ApiModelProperty(value = "系統可用餘額")
    @TableField(exist = false)
    private BigDecimal sysUseSum;

    @ApiModelProperty(value = "創建日期開始")
    @TableField(exist = false)
    private String createTimeStart;

    @ApiModelProperty(value = "創建日期結束")
    @TableField(exist = false)
    private String createTimeEnd;

    @ApiModelProperty(value = "交易日期開始")
    @TableField(exist = false)
    private String tranDateStart;

    @ApiModelProperty(value = "交易日期結束")
    @TableField(exist = false)
    private String tranDateEnd;

    @ApiModelProperty(value = "兑现日期開始")
    @TableField(exist = false)
    private String cashTimeStart;

    @ApiModelProperty(value = "兑现日期結束")
    @TableField(exist = false)
    private String cashTimeEnd;


    /**
     * 未兑现
     */
    public static final int IS_CASH_0 = 0;
    /**
     * 已兑现
     */
    public static final int IS_CASH_1 = 1;
    /**
     * 不计
     */
    public static final int IS_IN_STA_0 = 0;
    /**
     * 要计
     */
    public static final int IS_IN_STA_1 = 1;
    /**
     * 前面記錄
     */
    public static final int REG_STATUS_0 = 0;
    /**
     * 最後一條
     */
    public static final int REG_STATUS_1 = 1;

}
